package com.gordon.tips.domain;

import java.text.SimpleDateFormat;
import java.util.Date;

import com.gordon.tips.util.RenderUtil;

/**
 *****************************************************************************
 ** Module : Topic Bean
 ** 
 ** Date:  Aug 14, 2011
 ** 
 ** Author: Gordon
 ** 
 ** Email: 462991284@qq.com
 ** 
 ** (C) Copyright 2011 Gordon's Office
 *****************************************************************************
 */
public class Topic {
	private int id;
	private String title;
	private int reply;
	private int view;
	private Date createTime;
	private Date lastReplyTime;
	private User author;
	private User lastReplyer;	
	private int top;

	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public int getReply() {
		return reply;
	}
	public void setReply(int reply) {
		this.reply = reply;
	}
	public int getView() {
		return view;
	}
	public void setView(int view) {
		this.view = view;
	}
	public String getCreateTime() {
		return RenderUtil.getDateDisplay(createTime);
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public String getLastReplyTime() {
		return RenderUtil.getDateDisplay(lastReplyTime);
	}
	public void setLastReplyTime(Date lastReplyTime) {
		this.lastReplyTime = lastReplyTime;
	}
	public User getAuthor() {
		return author;
	}
	public void setAuthor(User author) {
		this.author = author;
	}
	public User getLastReplyer() {
		return lastReplyer;
	}
	public void setLastReplyer(User lastReplyer) {
		this.lastReplyer = lastReplyer;
	}
	public int getTop() {
		return top;
	}
	public void setTop(int top) {
		this.top = top;
	}
}
